package cn.dansj.common.utils.time;

import java.util.Locale;
import java.util.TimeZone;

public abstract class TimeUtils {
    public static final String GMT_ID = "GMT";

    public static Locale toLocale(final Locale locale) {
        return locale != null ? locale : Locale.getDefault();
    }

    public static TimeZone toTimeZone(final TimeZone timeZone) {
        return timeZone != null ? timeZone : TimeZone.getDefault();
    }
}
